/** * Lookup a facet on attached repository. * * Reduce some verbosity for commonly used repository operation. * * @see Repository#facet(Class) */ @Nonnull protected <T extends Facet> T facet(final Class<T> type) throws MissingFacetException { return getRepository().facet(type); }
/** * Lookup an {@link Optional} facet on attached repository. * * Reduce some verbosity for commonly used repository operation. * * @see Repository#optionalFacet(Class) */ @Nonnull protected <T extends Facet> Optional<T> optionalFacet(final Class<T> type) { return getRepository().optionalFacet(type); }
@Override @Guarded(by = STOPPED) public void update() throws Exception { doUpdate(getRepository().getConfiguration()); }
@Override @Transitions(from = ATTACHED, to = INITIALISED) public void init() throws Exception { doInit(getRepository().getConfiguration()); }