@Override void prepareInjection(final AdminCommandContext ctx) { super.prepareInjection(ctx); parentBean = resolver.resolve(ctx, parentType); }
@Override public <T extends ConfigBeanProxy> T createProxy(Class<T> proxyType) { TranslatedConfigView.setHabitat(getServiceLocator()); if (defaultView==null) { defaultView = new TranslatedConfigView(this); } return defaultView.getProxy(proxyType); }
@Override public boolean preAuthorization(final AdminCommandContext adminCommandContext) { if ( ! super.preAuthorization(adminCommandContext)) { return false; } prepareInjection(adminCommandContext); return true; }
@Element @Create(value="enable-secure-admin-principal", decorator=SecureAdminPrincipal.CrDecorator.class, i18n=@I18n("enable.secure.admin.principal.command")) @Delete(value="disable-secure-admin-principal", resolver=SecureAdminPrincipal.Resolver.class, i18n=@I18n("disable.secure.admin.principal.command")) @Listing(value="list-secure-admin-principals", resolver=SecureAdminPrincipal.Resolver.class, i18n=@I18n("list.secure.admin.principals.command")) public List<SecureAdminPrincipal> getSecureAdminPrincipal();
private void handleClusters() throws XMLStreamException { // we are pointed at the servers element printf("FOUND CLUSTERS"); while (skipToStartButNotPast(CLUSTER, CLUSTERS)) { handleCluster(); } }
private void handleServers() throws XMLStreamException { // we are pointed at the servers element printf("FOUND SERVERS"); while (skipToStartButNotPast(SERVER, SERVERS)) { handleServer(); } }
public int nextTag() throws XMLStreamException { while(true) { // Fix for issue 9127 // The following call to super.nextTag() is replaced with thisNextTag() int r = thisNextTag(); if(r != START_ELEMENT || !filterOut()) return r; skipTree(); } }
private void handleConfigs() throws XMLStreamException { // we are pointed at the configs element printf("FOUND CONFIGS"); while (skipToStartButNotPast(CONFIG, CONFIGS)) { handleConfig(); } }
@Override public Dom make(final ServiceLocator serviceLocator, XMLStreamReader xmlStreamReader, GlassFishConfigBean dom, ConfigModel configModel) { return new GlassFishConfigBean(serviceLocator, this, dom, configModel, xmlStreamReader); } };
private void upgradeApplicationElements() { upgradeV2ApplicationElements(); upgradeV3PreludeApplicationElements(); upgradeV3_0_1_AppClientElements(); }
@Override public Class getDecoratorClass() { if (create != null) { return create.decorator(); } else { return null; } }
@Override public Class getDecoratorClass() { if (delete != null) { return delete.decorator(); } else { return null; } } }
@Override public <T extends ConfigBeanProxy> T resolve(AdminCommandContext context, Class<T> type) { if (defaultResolver!=null) { return defaultResolver.resolve(context, type); } return null; } }
InstanceReaderFilter(String theServerName, URL theDomainXml, XMLInputFactory theXif) throws XMLStreamException, DomainXmlPreParserException { super(theDomainXml, theXif); instanceName = theServerName; dxpp = new DomainXmlPreParser(domainXml, xif, instanceName); }
@Override public boolean preAuthorization(AdminCommandContext adminCommandContext) { prepareInjection(adminCommandContext); return true; }
@Element @Create(value="enable-secure-admin-internal-user", decorator=SecureAdminInternalUser.CrDecorator.class, i18n=@I18n("enable.secure.admin.internal.user.command")) @Delete(value="disable-secure-admin-internal-user", resolver=TypeAndNameResolver.class, i18n=@I18n("disable.secure.admin.internal.user.command")) @Listing(value="list-secure-admin-internal-users", resolver=TypeAndNameResolver.class, i18n=@I18n("list.secure.admin.internal.user.command")) public List<SecureAdminInternalUser> getSecureAdminInternalUser();
private void handleClusters() throws XMLStreamException { // we are pointed at the servers element printf("FOUND CLUSTERS"); while (skipToStartButNotPast(CLUSTER, CLUSTERS)) { handleCluster(); } }
@Override public Dom make(final ServiceLocator habitat, XMLStreamReader xmlStreamReader, GlassFishConfigBean dom, ConfigModel configModel) { // by default, people get the translated view. return new GlassFishConfigBean(habitat,this, dom, configModel, xmlStreamReader); } };
@Override void prepareInjection(final AdminCommandContext ctx) { super.prepareInjection(ctx); parentBean = resolver.resolve(ctx, parentType); }
@Override public GlassFishConfigBean make(final Habitat habitat, XMLStreamReader xmlStreamReader, GlassFishConfigBean dom, ConfigModel configModel) { // by default, people get the translated view. return new GlassFishConfigBean(habitat,this, dom, configModel, xmlStreamReader); } }